package com.project.hqshorttaxi.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name = "T_ShortDistance")
public class ShortDistance implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Id
    @Column(name = "ID")
    private Integer id;

    /**
     * 是否符合短途（1-符合2-不符合）
     */
    @Column(name = "RecType")
    private Integer recType;

    /**
     * 蓄车场号（0 南蓄1 北蓄）
     */
    @Column(name = "ParkingNo")
    private Integer parkingNo;

    /**
     * 车牌号
     */
    @Column(name = "PlateNumber")
    private String plateNumber;

    /**
     * 离开时间
     */
    @Column(name = "LeaveTime")
    private Date leaveTime;

    /**
     * 牌照识别离开记录ID
     */
    @Column(name = "LeaveCameraID")
    private Integer leaveCameraID;

    /**
     * 返回至闸机时间
     */
    @Column(name = "ReturnTime")
    private Date returnTime;

    /**
     * 离开到返回的时间差距
     */
    @Column(name = "DiffTime")
    private Integer diffTime;

    /**
     * 订单距离
     */
    @Column(name = "OrderMileage")
    private Double orderMileage;

    /**
     * 关联订单id
     */
    @Column(name = "OrderID")
    private Integer orderID;

    /**
     * 拒绝原因（1-没有出场记录
     * 2-返回超过规定时间
     * 3-超过优先次数
     * 4-非蓄车场订单
     * 5-订单距离超过规定里程
     * 6-没有订单信息
     * 7-订单获取超时）
     */
    @Column(name = "RefuseType")
    private Integer refuseType;

    /**
     * 删除标识
     */
    @Column(name = "DeleteFlag")
    private Integer deleteFlag;

}
